package com.hb.`when`

class Demo01 {
}


fun gradeStudent(score:Int){
    when(score){
       10 -> println("满分，good")
       9 -> println("干的不错")
        8-> println("可以")
       7 -> println("还行")
    }
}

fun main() {
    gradeStudent(9)
}